<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
      }
      .box {
        width: 200px;
        height: 200px;
        background-color: #fac;
        /* position: absolute; */
        /* top: 50%; */
        /* left: 50%; */
        /* margin-left: -100px;
            margin-top: -100px; */
        /* transform: translateX(-50%) translateY(-50%); */

        /* transform:  translateX(50%); */
        /* transform: scale(1); */
        /* 过渡 */
        /* transform: rotate(30deg); */
        /* transition: all .2s; */
        transform-origin: left top;
        transform: translateX(100px) rotate(45deg);
      }
      .box:hover {
        /* transform: scale(.8); */
      }
      .box1 {
        width: 200px;
        height: 200px;
        margin: 0 auto;
        background-color: #fca;
      }
    </style>
  </head>
  <body>
    <div class="box">1</div>
  </body>
</html>

